import http from 'http';
import fs from 'fs';
import Koa from 'koa';
import KoaRouter from 'koa-router';
import chatServer from './lib/chat_server';
import path from 'path';
import mime from 'mime';
const cache = {};

const app = new Koa();


const server = http.createServer(app.callback());

server.listen(3000, () => {
    console.log("server listening on port 3000.")
});

chatServer(server);